<?php

class DataModel extends Model 
{

	protected $_validate=array(
		array('title','require','文章标题不能为空',0,'','all'),
		array('catid','require','文章分类不能为空',0,'','all'),
		array('intro','require','文章简介不能为空',0,'','all'),
		array('htmlbody','require','文章内容不能为空',0,'','all'),		
	);	
	protected $_auto  =  array(  	
        array('addtime','time','ADD','function'),
	);
}
?>